package com.jml.api;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("swagger控制器|接口描述")
@RestController
public class SwaggerController {

	@ApiOperation("swagger演示服务接口")
	@PostMapping("/swaggerIndex")
	public String swaggerIndex(){
		return "swaggerIndex";
	}

	@ApiOperation("获取会员相关的信息")
	@ApiImplicitParam(name = "userName",value = "用户信息",required = true,dataType = "String")
	@PostMapping("/getMember")
	public String getMember(String userName){
		return "username:"+userName;
	}
}
